package com.changpei.core;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author weibiao
 */
@SpringBootApplication(scanBasePackages = {"com.changpei.common.exception", "com.changpei.common.config", "com.changpei.common.cache", "com.changpei.core"})
@EnableEurekaClient
@ServletComponentScan
@MapperScan(basePackages = {"com.changpei.core.dao"})
@Transactional(rollbackFor = Exception.class)
@EnableScheduling
public class CoreApplication {
    public static void main(String[] args) {
        SpringApplication.run(CoreApplication.class);
    }
}
